package com.shop.domin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

//#日志表
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("Logs")
public class Logs implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id; //主键id
    @TableField(value = "userid")
    private Integer userId;//用户id
    @TableField(value = "username")
    private String userName;//用户名

    private String operation;//用户操作

    private String method;//请求方法

    private String params;//请求参数
    @TableField(value = "createTime")
    private Date createTime;//创建时间
}
